import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:niuren_demo/page/dynamic/contant/account/api_account_page.dart';
import 'package:niuren_demo/page/dynamic/contant/account/nr_account_page.dart';

class AccountPage extends StatefulWidget {
  @override
  _AccountPageState createState() => _AccountPageState();
}

class _AccountPageState extends State<AccountPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        child: DefaultTabController(
            length: 2,
            child: Column(
              children: [
                Container(
                  color: Colors.white,
                  height: 44,
                  child: TabBar(
                    indicator: const BoxDecoration(),
                    labelColor: Colors.black,
                    labelStyle: TextStyle(fontWeight: FontWeight.bold),
                    unselectedLabelColor: Colors.grey,
                    tabs: <Widget>[
                      Tab(text: '牛人账户',),
                      Tab(text: "API账户"),
                    ],
                  ),
                ),
                Expanded(
                  child: TabBarView(
                    children: <Widget>[NrAccountPage(), ApiAccountPage()],
                  ),
                ),
              ],
            )),
      ),
    );
  }
}
